---
import { type MarkdownHeading } from "astro";

import MoreMenu from "./moreMenu.astro";
import TableOfContents from "./tableOfContents.astro";

export interface Props {
  headings: MarkdownHeading[];
  githubEditUrl: string;
  title: string;
}

const { headings, githubEditUrl, title } = Astro.props;
---

<TableOfContents headings={headings} title={title} />
<MoreMenu editHref={githubEditUrl} />
